package JavaEETest;

import JavaEETest.BeanOverview.ClientService;
import JavaEETest.ContainerOverview.Dao.AccountDao;
import JavaEETest.ContainerOverview.Service.PetService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

//
// Created by ✎﹏ℳ๓独赏☆独醉 on 2024/3/6.
// 
public class MainTest {
    public static void main(String[] args) {
        //实例化
//        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

        //获取组件
//        AccountDao accountDao = context.getBean("accountDao",AccountDao.class);
//
//        PetService petService = context.getBean("petService",PetService.class);
//
//        AccountDao accountDao1 = context.getBean("accountDao1",AccountDao.class);
//
//        ClientService clientService = context.getBean("clientService",ClientService.class);
//
//        System.out.println(accountDao);
//
//        System.out.println(petService);
//
//        System.out.println(accountDao1);
//
//        System.out.println(clientService);

    }
}
